package com.shaozi.nc.mq.producer;

import java.util.List;

import com.shaozi.data.mq.protocol.ConnectionBuilder;
import com.shaozi.data.mq.protocol.stomp.StompTextProducer;
import com.shaozi.nc.data.model.SecretaryModel;

/**
 * BeanUtils.getBean("secretaryTextProducer");
 * 
 * @author xueshuwu
 *
 */
public class SecretaryTextProducer extends StompTextProducer {

	public SecretaryTextProducer(ConnectionBuilder connBuilder) {
		super(connBuilder);

	}

	public void push(String companyId, List<SecretaryModel> secretaryModels) {
		if ((secretaryModels == null) || (secretaryModels.isEmpty()))
			return;
		sendObj("com.push.secretary", secretaryModels);
	}

}
